package enum

import "mldong/utility"

func init() {
	utility.RegisterEnumValues("菜单打开方式", "sys_menu_open_type", []interface{}{
		MENU_OPEN_TYPE_NONE,
		MENU_OPEN_TYPE_COMPONENT,
		MENU_OPEN_TYPE_IFRAME,
		MENU_OPEN_TYPE_LINK,
	})
}

// 菜单打开方式枚举
type MenuOpenTypeEnum struct {
	Key     string
	Code    int
	Message string
}

var MENU_OPEN_TYPE_NONE = MenuOpenTypeEnum{Key: "NONE", Code: 0, Message: "无"}
var MENU_OPEN_TYPE_COMPONENT = MenuOpenTypeEnum{Key: "COMPONENT", Code: 1, Message: "组件"}
var MENU_OPEN_TYPE_IFRAME = MenuOpenTypeEnum{Key: "IFRAME", Code: 2, Message: "内部链接"}
var MENU_OPEN_TYPE_LINK = MenuOpenTypeEnum{Key: "LINK", Code: 3, Message: "外部链接"}
